package com.toune.dltools.view.tab

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import androidx.viewpager.widget.PagerAdapter

class DLPagerAdapter(
    fragmentManager: FragmentManager, vpFragments: MutableList<Fragment>
) : FragmentStatePagerAdapter(fragmentManager) {
    private val vpFragments = vpFragments
    private val fragmentManager = fragmentManager
    override fun getItem(position: Int): Fragment {
        return vpFragments[position]
    }

    override fun getCount(): Int {
        return vpFragments.size
    }

}
